package com.example.shop.commodity.dao;

import com.example.shop.base.BaseDao;
import com.example.shop.commodity.entity.ShopCommodity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hcj
 */
@Mapper
public interface ShopCommodityDao extends BaseDao<ShopCommodity> {
    ShopCommodity getById(@Param("id") String id);

    int deduct(@Param("id")String id,@Param("v")Integer v);

    List<ShopCommodity> search(ShopCommodity commodity);
}